package org.example;

import java.awt.*;
import java.awt.event.KeyEvent;

public class java输出鼠标当前位置 {

    public static void main(String[] args) throws AWTException {

        Robot robot = new Robot();
        //按下f12
        robot.keyPress(KeyEvent.VK_F12);
        //释放f12
        robot.keyRelease(KeyEvent.VK_F12);


    }

}
